# map 函数

list_x = [1, 2, 3, 4, 5, 6, 7, 8, 9]

def square(x):
    return x * x

# for x in list_x:
#   square(x)

new_list = map(square, list_x)

print(list(new_list))